package com.chipmunk.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Tre'
 * @date 2020/12/7 19:05
 * 自动装配：原理！
 */
@RestController
public class HelloController {

    /**
     * 接口：http://localhost:8081/hello
     * @return
     */
    @RequestMapping("/hello")
    public String hello() {
        //调用业务，接收前端的参数！
        return "Hello World!";
    }
}
